package com.yuyou.activity.group.service.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.yuyou.activity.group.service.entity.ActivityGroupbuyUser;

@Mapper
public interface ActivityGroupbuyUserMapper {
    int deleteByPrimaryKey(Long activityGroupbuyUserId);

    int insert(ActivityGroupbuyUser record);

    ActivityGroupbuyUser selectByPrimaryKey(Long activityGroupbuyUserId);

    int updateByPrimaryKeySelective(ActivityGroupbuyUser record);
    
    /**
     * 根据openId获取用户信息
     * @param projectCode
     * @param openId
     * @return
     */
    ActivityGroupbuyUser selectByOpenId(@Param(value = "projectCode")String projectCode,@Param(value = "openId")String openId);
}